<?php
class App_Plugin_SetCookie extends Zend_Controller_Plugin_Abstract
{
	public function __construct()
	{
		if(!key_exists('userid' , $_COOKIE)){
			setcookie ("userid", md5(rand(0,9999*9999)),  mktime(0, 0, 0, 12, 32, 2100), '/');
		}
	}
}